package cn.tedu.javagame.ball;

import javax.swing.*;

public class BallFrame extends JFrame {
    public static final int WIDTH = 1920;
    public static final int HEIGHT = 1080;
    public BallFrame(){
        this.setTitle("小弹球");
        this.setSize(WIDTH,HEIGHT);
        BallPanel panel = new BallPanel();
        panel.action();
        this.add(panel);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
